import { createRouter, createWebHashHistory, createWebHistory } from 'vue-router';

const routes = [
  //index文件夹
  {
    path: '/index/home',
    component: () => import('../views/index/home.vue')
  },
  //dataAnalysis文件夹
  {
    path: '/dataAnalysis/industryType',
    component: () => import('../views/dataAnalysis/industryType.vue')
  },
  {
    path: '/dataAnalysis/test1',
    component: () => import('../views/dataAnalysis/test1.vue')
  },
  //login文件夹
  {
    path: '/',
    component: () => import('../views/login/portalLogin.vue')
  },
  //login文件夹下identityAuthenticationPlatform文件夹
  {
    path: '/login/platform/platformLogin',
    component: () => import('../views/login/identityAuthenticationPlatform/platformLogin.vue')
  },

];


const router = createRouter({
  //history: createWebHashHistory(),  // hash路由模式
  history: createWebHistory(),  // history路由模式
  routes
});

export default router;
